<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="{$_C.hy_path}css/amazeui.min.css"/>
		<link rel="stylesheet" type="text/css" href="{$_C.hy_path}css/hy.admin.css"/>
	</head>
	<body>
		<div class="am-g">
			 {include file='../Common/hy_header.html'}
			 	
      <div class="am-u-md-6 am-cf">
        <div class="am-fl am-cf">
          <div class="am-btn-toolbar am-fl">
            <div class="am-btn-group am-btn-group-xs">
             {if $_C.DEBUG==1}
              <button data-id="addadpos" data-href="index.php?g=admin&m=vote&a=info" type="button" class="am-btn am-btn-default hy-js-href"><span class="am-icon-plus"></span> 新建投票</button>
              <!-- <button  type="button" data-action="del_group" class="am-btn am-btn-default hy-js-delall"><span class="am-icon-trash-o"></span> 删除</button> -->
              {/if}
            </div>
          </div>
        </div>
      </div>
      <div class="am-u-md-3 am-cf">
        <div class="am-fr">
        </div>
      </div>
      
      <div class="am-g">
      <div class="am-u-sm-12">
        <div class="am-form">
          <table class="am-table am-table-striped am-table-hover hy-table-main">
            <thead>
              <tr>
                <th class="table-check"><!-- <input class="hy-js-selectall" type="checkbox" /> --></th>
                <th class="table-title">标题</th>
				<th class="table-type">活动链接</th>
                <th class="table-type">参与人数</th>
				 <th class="table-type">状态</th>
            	<th class="table-type">活动时间</th>
                <th class="table-date">创建时间</th>
                <th class="table-set">操作</th>
              </tr>
          </thead>
          <tbody>
          	{foreach from=$ad_list item=ad}
            <tr>
              <td><!-- <input class="hy-js-id" type="checkbox" value="{$ad.id}"/> --></td>
              <td>{$ad.name}</td>
			  <td>{$ad.link}</td>
              <td>{$ad.joinnums}</td>
			  <td>{if $ad.status == 1} 开启 {else} 关闭 {/if}</td>
			  <td>{$ad.dotime1} 至 {$ad.dotime2}</td>
              <td>{$ad.addtime}</td>
              <td>
                <div class="am-btn-toolbar">
                  <div class="am-btn-group am-btn-group-xs">
                   
                    <button data-id="adcontent_{$ad.id}" data-title="{$ad.name}" data-href="index.php?g=admin&m=vote&a=info&id={$ad.id}" class="am-btn am-btn-default am-btn-xs hy-js-href"><span class="am-icon-copy"></span> 内容</button>
                     {if $_C.DEBUG==1}
                    <button data-param ="{ url:'index.php?g=admin&m=vote&a=del&id={$ad.id}',hide:4}" class="am-btn am-btn-default am-btn-xs am-text-danger hy-js-del"><span class="am-icon-trash-o"></span> 删除</button>
                 {/if}
                   </div>
                </div>
              </td>
            </tr>
             {/foreach} 
          </tbody>
        </table>
          <div class="am-cf">

  <div class="am-fr">
  {$user_list_page}
  </div>
</div>
          <hr />
      
        </div>
      </div>

    </div>
    </div>
   {include file='../Common/hy_footer.html'}
	</body>
</html>
